<head>
<body>
<H3>Setting up calendar</H3>
<P><STRONG>1. Add calendar to a page<BR></STRONG>Create a page&nbsp;containing the calendar.&nbsp;The calendar is displayed where you put the code below.&nbsp;</P>
<P><STRONG>Code:<BR><EM>#</EM></STRONG><EM>cmsimple $output.=calendar('','','somepage')</EM><STRONG>#</STRONG></P>
<P>This will display current month and year and link events to eventspage called somepage</P>
<P>The code below will display current month and next month</P>
<P><STRONG>Code:<BR></STRONG><STRONG>#</STRONG><EM>cmsimple $output.=calendar('','','somepage'); $output.=calendar(date("Y",time()),date("n",time())+1,'somepage');<STRONG>#</STRONG></EM></P>
<P><STRONG>2. Add events page<BR></STRONG>Create a page called eg. somepage on the page add the code below.</P>
<P><STRONG>Code<BR>#</STRONG><EM>cmsimple $output.=events();</EM>#<BR><BR>This will display events for current year and month.</P>
<P>The code below will display events for current month plus next two months</P>
<P><STRONG>Code<BR></STRONG><EM>&lt;H1&gt;somepage&lt;/H1&gt;<BR><U>#</U>cmsimple $output.=events(); <BR>$output.=events(date("Y",time()),date("n",time())+1);<BR>$output.=events(date("Y",time()),date("n",time())+2);<STRONG><U>#</U></STRONG></EM></P>
<P>If you want to display the events&nbsp;from the&nbsp;month you select in the calendar use this code, also the&nbsp;selcted month + 2 months (maybe you should edit the content file directly to make this work properly).</P>
<P><STRONG>Code<BR></STRONG><EM>&lt;H1&gt;somepage&lt;/H1&gt;<BR><STRONG><U>#</U></STRONG>cmsimple if($year=='')$year = date("Y",time());<BR>if($month=='')$month = date("n",time()); <BR>$output.=events($year,$month); <BR>if($month=='12'){$year++;$month=1;}else{$month++;}$output.=events($year,$month); <BR>if($month=='12'){$year++;$month=1;}else{$month++;}$output.=events($year,$month);<STRONG><U>#</U></STRONG> <BR></EM></P>
<P><STRONG>3. Managing the calendar plugin<BR></STRONG>The plugin can be managed by logging into cmsimple as manager, select the calendar plugin from the avaliable plugins drop downbox. and you are off, the events are managed in the main settings, the stylesheet,config or language from the corresponding buttons.<BR><BR>Events are added using&nbsp;the format:<BR><STRONG>&lt;dd-mm-yyyy&gt;;&lt;Event&gt;;&lt;Time and Location&gt;</STRONG></P>
<P>If <STRONG>&lt;Time and Location&gt; </STRONG>is gives as ### it indentifies it a birthday and age is calgulated to be displayed&nbsp;on the eventpage.<BR></P></body>
</head>